package org.idea.qiyu.live.framework.redis.starter.key;

import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;


/**
 * @Params
 * @Return
 * @Description 其他提供商缓存键生成器
 * @Author zhangguangyan
 * @Date 2023-07-28 20:39:25
 */
@Configuration
@Conditional(RedisKeyLoadMatch.class)
public class OtherProviderCacheKeyBuilder extends RedisKeyBuilder{

    private static String USER_INFO_KEY = "userInfo";

    public String buildUserInfoKey(Long userId) {
        return super.getPrefix() + USER_INFO_KEY + super.getSplitItem() + userId;
    }

}
